// 从backtop公共组件中引入Backtop类
import Backtop from 'components/backtop';

const el=document.getElementById('backtop');
const critical_point=document.documentElement.clientHeight;
const scrollContainer=document.getElementById('index-page');
// 创建Backtop类的实例
new Backtop(el,critical_point,scrollContainer);